<?php
class Zen_Class
{
    public static function autoload($name)
    {
        $exists = class_exists($name, false) ||
                  interface_exists($name, false);

        if ($exists) {return;}
        $file = self::nameToFile($name);

        Zen_File::load($file);
    }

    //@todo　情况很复杂，需要考虑所有情况
    public static function nameToFile($name)
    {
        return str_replace('_', DIRECTORY_SEPARATOR, $name) . '.php';

    }
}